<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="common/common::common('查看菜单')"/>
</head>
<body>

<form class="layui-form layui-form-pane" id="seeBaseMenuForm" th:object="${baseMenu}">
    <div class="layui-form-body">
        <div class="layui-form-item">
            <label class="layui-form-label">菜单标题</label>
            <div class="layui-input-block">
                <input type="text" th:field="*{title}"
                       class="layui-input" readonly="readonly">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">类型</label>
            <div class="layui-input-block" th:with="dicts=${@dict.getType('menu_type')}">
                <input type="radio" name="type" readonly
                       th:each="dict : ${dicts}"
                       th:title="${dict.dictLabel}"
                       th:value="${dict.dictValue}"
                       th:attr="checked=${dict.dictValue eq baseMenu.type ? true:false}">
            </div>
        </div>
        <div class="layui-form-item" pane>
            <label class="layui-form-label">菜单状态</label>
            <div class="layui-input-block" th:with="dicts=${@dict.getType('menu_visible')}">
                <input type="radio" name="visible"
                       th:each="dict : ${dicts}"
                       th:title="${dict.dictLabel}"
                       th:value="${dict.dictValue}"
                       th:attr="checked=${dict.dictValue eq baseMenu.visible?true:false}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单路径</label>
            <div class="layui-input-block">
                <input type="text" th:field="*{href}"
                       class="layui-input" readonly="readonly">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权限标识</label>
            <div class="layui-input-block">
                <input type="text" th:field="*{perms}"
                       class="layui-input" readonly="readonly">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">菜单图标</label>
            <div class="layui-input-block">
                <input type="text" th:field="*{icon}"
                       class="layui-input" readonly="readonly">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">排序</label>
            <div class="layui-input-block">
                <input type="text" th:field="*{orderNum}"
                       class="layui-input" readonly="readonly">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-block">
                <input type="text" th:field="*{description}"
                       class="layui-input" readonly="readonly">
            </div>
        </div>
    </div>
</form>

</body>
</html>